package com.shhic.hhplt.server.mapper;

import java.util.List;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.shhic.hhplt.server.model.User;
import com.shhic.hhplt.server.model.Workbay;
import com.shhic.hhplt.server.model.WorkbayState;
import com.shhic.hhplt.server.model.WorkbayStateQuery;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface IUserDao {

	List<String> getAllProductList();

	User getUser(String username, String password);

	void updateUserPassword(String username, String newpassword);

	int checkIfExistsProductAndSuite(String product,String suite);

	void insertProductAndSuite(String product,String suite);

	List<String> getSuiteList(String productName);

	List<String> getAllTestorNameList();

	void insertUser(User user);

	List<User> getAllUser();

	void deleteUser(String username);

	void insertWorkbay(Workbay workbay);

	void insertWorkbayState(WorkbayState wbs);

	List<Workbay> getAllWorkbay();

	void deleteWorkbay(String workbayId);

	List<WorkbayState> queryHistoryWorkbayState(WorkbayStateQuery query);

}
